TEMPLATE = app

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-sources
ANDROID_PACKAGE = ru.dublgis.offscreenview
ANDROID_MINIMUM_VERSION = 15
ANDROID_TARGET_VERSION = 15
ANDROID_APP_NAME = QML WebView

QT += qml quick widgets opengl network sql

ios {
  QT += gui-private
}

!ios {
  QT += location
  QT += positioning
}

SOURCES += main.cpp \
    utils/webviewutils.cpp \
    utils/utils.cpp \
    databasecreator.cpp \
    dao/dao.cpp \
    dao/databaseexception.cpp \
    dao/genericlistmodel.cpp \
    dao/query.cpp \
    db/db.cpp \
    entity/entity.cpp \
    entity/aqprodgrupo.cpp \
    entity/aqempresa.cpp \
    entity/aqproduto.cpp \
    entity/aqprodempresainfo.cpp \
    entity/aqembalagemproduto.cpp \
    entity/aqprodembalagem.cpp \
    entity/aqfornecedor.cpp \
    entity/trforncoleta.cpp \
    entity/trforncoletaitem.cpp \
    entity/trcoleta.cpp \
    entity/trcoletaitem.cpp \
    entity/sspassos.cpp \
    entity/ssnotificacao.cpp \
    entity/ssanotacao.cpp \
    entity/ssanotacaofoto.cpp \
    entity/ssrastreador.cpp \
    services/service.cpp \
    synccontroller.cpp \
    services/genericservice.cpp \
    fornecedorescontroller.cpp \
    produtoscontroller.cpp \
    coletascontroller.cpp \
    embalagenscontroller.cpp \
    passoscontroller.cpp \
    eventfilter.cpp

HEADERS += \
    utils/webviewutils.h \
    utils/utils.h \
    databasecreator.h \
    dao/dao.h \
    dao/databaseexception.h \
    dao/genericlistmodel.h \
    dao/query.h \
    db/db.h \
    entity/entity.h \
    entity/aqprodgrupo.h \
    entity/aqempresa.h \
    entity/aqproduto.h \
    entity/aqprodempresainfo.h \
    entity/aqembalagemproduto.h \
    entity/aqprodembalagem.h \
    entity/aqfornecedor.h \
    entity/trforncoleta.h \
    entity/trforncoletaitem.h \
    entity/trcoleta.h \
    entity/trcoletaitem.h \
    entity/sspassos.h \
    entity/ssnotificacao.h \
    entity/ssanotacao.h \
    entity/ssanotacaofoto.h \
    entity/ssrastreador.h \
    dao/aqembalagemprodutodao.h \
    dao/aqempresadao.h \
    dao/aqfornecedordao.h \
    dao/aqprodembalagemdao.h \
    dao/aqprodempresainfodao.h \
    dao/aqprodgrupodao.h \
    dao/aqprodutodao.h \
    dao/ssanotacaodao.h \
    dao/ssanotacaofotodao.h \
    dao/ssnotificacaodao.h \
    dao/sspassosdao.h \
    dao/ssrastreadordao.h \
    dao/trcoletadao.h \
    dao/trcoletaitemdao.h \
    dao/trforncoletadao.h \
    dao/trforncoletaitemdao.h \
    services/service.h \
    synccontroller.h \
    services/genericservice.h \
    fornecedorescontroller.h \
    produtoscontroller.h \
    coletascontroller.h \
    embalagenscontroller.h \
    passoscontroller.h \
    eventfilter.h

OTHER_FILES += \
    android/AndroidManifest.xml \
    android/res/values/libs.xml \
    android/res/values/strings.xml \
    android/res/drawable-mdpi/icon.png \
    android/res/drawable-hdpi/icon.png \
    android/res/drawable-ldpi/icon.png \
    android/src/eu/licentia/necessitas/ministro/IMinistroCallback.aidl \
    android/src/eu/licentia/necessitas/ministro/IMinistro.aidl \
    android/src/eu/licentia/necessitas/industrius/QtApplication.java \
    android/src/eu/licentia/necessitas/industrius/QtActivity.java \
    android/src/eu/licentia/necessitas/industrius/QtSurface.java \
    android/src/eu/licentia/necessitas/industrius/QtLayout.java \
    android/src/eu/licentia/necessitas/mobile/QtLocation.java \
    android/src/eu/licentia/necessitas/mobile/QtFeedback.java \
    android/src/eu/licentia/necessitas/mobile/QtAndroidContacts.java \
    android/src/eu/licentia/necessitas/mobile/QtMediaPlayer.java \
    android/src/eu/licentia/necessitas/mobile/QtSystemInfo.java \
    android/src/eu/licentia/necessitas/mobile/QtCamera.java \
    android/src/eu/licentia/necessitas/mobile/QtSensors.java \
    javascript/utils.js \
    android-sources/AndroidManifest.xml

RESOURCES += resources.qrc

ios {
  RESOURCES += mapComponentIOS.qrc
}

!ios {
  RESOURCES += mapComponent.qrc
}

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

android {
  QT += androidextras

#  SOURCES += ./QtOffscreenViews/QAndroidOffscreenView.cpp \
#    ./QtOffscreenViews/QAndroidOffscreenWebView.cpp \
#    ./QtOffscreenViews/QOpenGLTextureHolder.cpp \
#    ./QJniHelpers/QAndroidQPAPluginGap.cpp \
#    ./QtOffscreenViews/QAndroidOffscreenEditText.cpp \
#    ./QJniHelpers/QJniHelpers.cpp \
#    ./QtOffscreenViews/QAndroidJniImagePair.cpp \
#    ./QtOffscreenViews/QQuickViews/QQuickAndroidOffscreenView.cpp \
#    ./QtOffscreenViews/QQuickViews/QQuickOffscreenEditText.cpp \
#    ./QtOffscreenViews/QQuickViews/QQuickOffscreenWebView.cpp \
#    ./QtOffscreenViews/QApplicationActivityObserver.cpp


#  HEADERS += ./QtOffscreenViews/QAndroidOffscreenView.h \
#    ./QtOffscreenViews/QAndroidOffscreenWebView.h \
#    ./QtOffscreenViews/QOpenGLTextureHolder.h \
#    ./QJniHelpers/QAndroidQPAPluginGap.h \
#    ./QtOffscreenViews/QAndroidOffscreenEditText.h \
#    ./QJniHelpers/QJniHelpers.h \
#    ./QtOffscreenViews/QAndroidJniImagePair.h \
#    ./QtOffscreenViews/QQuickViews/QQuickAndroidOffscreenView.h \
#    ./QtOffscreenViews/QQuickViews/QQuickOffscreenEditText.h \
#    ./QtOffscreenViews/QQuickViews/QQuickOffscreenWebView.h \
#    ./QtOffscreenViews/QApplicationActivityObserver.h

#  OTHER_FILES += android-sources/src/org/qtproject/example/NovaUI/MainActivity.java \
#    android-sources/src/org/qtproject/example/NovaUI/MyService.java \
#    android-sources/src/ru/dublgis/offscreenview/OffscreenView.java \
#    android-sources/src/ru/dublgis/offscreenview/OffscreenWebView.java

#  LIBS += -ljnigraphics

#  INCLUDEPATH += ./QJniHelpers ./QtOffscreenViews
}

ios {
OBJECTIVE_SOURCES += \
    ioswebview.mm
HEADERS += \
    ioswebview.h
}

# Default rules for deployment.
# include(deployment.pri)

android-no-sdk {
    target.path = /data/user/qt
    export(target.path)
    INSTALLS += target
} else:android {
    x86 {
        target.path = /libs/x86
    } else: armeabi-v7a {
        target.path = /libs/armeabi-v7a
    } else {
        target.path = /libs/armeabi
    }
    export(target.path)
    INSTALLS += target
} else:unix {
    isEmpty(target.path) {
        qnx {
            target.path = /tmp/$${TARGET}/bin
        } else {
            target.path = /opt/$${TARGET}/bin
        }
        export(target.path)
    }
    INSTALLS += target
}

export(INSTALLS)
